export default () => async (ctx, next) => {
    let title = "not found";

    if (ctx.status !== 404) {
        title = "system error!";
    }
    await ctx.render("index", {
        title,
        "status": ctx.status
    });
    await next()
}